﻿namespace WoltersKluwer.SPChainGang.Core.Constants
{
    public enum JobMode
    {
        CheckPathLinks,
        CheckBrokenLinks,
        UpdateLinks
    }

    public static class JobModeExtension
    {
        public static string ToFriendlyString(this JobMode jobMode)
        {
            switch (jobMode)
            {
                case JobMode.CheckBrokenLinks:
                    return "Broken Links Check";
                case JobMode.CheckPathLinks:
                    return "Path Links Check";
                case JobMode.UpdateLinks:
                    return "Links Update";
                default:
                    return jobMode.ToString();
            }
        }
    }
}
